<template>
  <div class="setting-window">
    <cg-button @click="handleAction('exit')">
      <span>退出</span>
    </cg-button>
    <cg-button @click="handleAction('setting')">
      <span>设置</span>
    </cg-button>
  </div>
</template>

<script setup lang="ts">
const $emit = defineEmits(['setting-action'])

const handleAction = (action: any) => {
  $emit('setting-action', action)
}
</script>

<style lang="scss">
.setting-window {
}
</style>
